// Wastepile.cpp: implementation of the CWastepile class.
//
//////////////////////////////////////////////////////////////////////


#include "Wastepile.h"


#include "backbuffer.h"

extern int ShowCards;

CWastepile::CWastepile()
{

}

CWastepile::~CWastepile()
{

}

bool CWastepile::CheckPushPrecondition(const CCard &_card)
{
	if( false == CSlot::CheckPushPrecondition( _card ) ) return false;

	if( _card.IsFaceDown() ) return false;

	return true;
}

void CWastepile::Draw(unsigned int _x, unsigned int _y, bool selected )
{
throw "draw is not implemented yet";
}

bool CWastepile::IncreaseSelection()
{
	if( cards_stored && 0 == cards_selected )
	{
		cards_selected = 1;
		return true;
	}
	else
		return false;
}


